<g:if test="${listImages!=null }">
	<g:each var="image" in="${listImages}" status="i">

		<figure
			class="image-square grid-quarter m-grid-third s-grid-half viewgrid"
			itemprop="associatedMedia" itemscope
			itemtype="http://schema.org/ImageObject">
			<g:if test="${image.getFilePath()!= ''}">
				<a
					href="https://s3-ap-southeast-1.amazonaws.com/${bucketS3}/${image.getUserEmail()}/${image.getFilePath()}/${image.getFileName()}?AWSAccessKeyId=${image.getAccessKeyId()}&Expires=${image.getExpires()}&Signature=${image.getSignature()}"
					itemprop="contentUrl" data-size="1024x768"> <img
					class="imagesquare reimg"
					src="https://s3-ap-southeast-1.amazonaws.com/${bucketS3}/${image.getUserEmail()}/${image.getFilePath()}/${image.getFileName()}?AWSAccessKeyId=${image.getAccessKeyId()}&Expires=${image.getExpires()}&Signature=${image.getSignature()}"
					itemprop="thumbnail" alt="Image description" />
				</a>
			</g:if>
			<g:else>
				<a
					href="https://s3-ap-southeast-1.amazonaws.com/${bucketS3}/${image.getUserEmail()}/${image.getFileName()}?AWSAccessKeyId=${image.getAccessKeyId()}&Expires=${image.getExpires()}&Signature=${image.getSignature()}"
					itemprop="contentUrl" data-size="1024x768"> <img
					class="imagesquare reimg"
					src="https://s3-ap-southeast-1.amazonaws.com/${bucketS3}/${image.getUserEmail()}/${image.getFileName()}?AWSAccessKeyId=${image.getAccessKeyId()}&Expires=${image.getExpires()}&Signature=${image.getSignature()}"
					itemprop="thumbnail" alt="Image description" />
				</a>
			
			</g:else>

			<figcaption itemprop="caption description">
				${image.getFileName()}
			</figcaption>
		</figure>
	</g:each>

	<a href="/photo/getListNextImagesTotal?thisoffset=${offsetnext}">next</a>
</g:if>	




